#ifndef __SQ_QUEUE_H__
#define __SQ_QUEUE_H__

#include "my_constants.h"
#include <stdio.h>  //使用printf()   scanf_s()
#include <stdlib.h> //malloc()      free()

#define MAXQSIZE 100 //队列的最大长度

typedef int Status;
typedef int QElemType;
typedef struct {
  QElemType *base; //初始化动态分配存储空间
  int front; //头指针,若队列不空,指向队头元素                        头节点
  int rear; //尾指针,若队列不空,指向队尾元素的下一个位置
} SqQueue;

Status InitQueue_Sq(SqQueue &Q);
Status DestroyQueue_Sq(SqQueue &Q);
Status QueueEmpty_Sq(SqQueue Q);
Status InsertQueue_Sq(SqQueue &Q, QElemType e);
Status DeleteQueue_Sq(SqQueue &Q, QElemType &e);

#endif